import {
	createSSRApp
} from "vue";
import App from "./App.vue";
import tops from './components/top.vue'
import uView from "./uni_modules/vk-uview-ui";//版本1，cli模式用不了版本2

var routes = []

export function createApp() {
	const app = createSSRApp(App);
	app.component('tops', tops)
	app.use(uView)
	app.config.globalProperties.$setnavs = function (list) { routes = list }
	app.config.globalProperties.$getnavs = function () { return routes }
	return {
		app,
	};
}
